package pattern.factory;

public class DevinsPizzaStore extends PizzaStore
{
	
	@Override
	protected Pizza creatPizza(String type)
	{
		Pizza pizza = null;
		SouceFactory souceFactory = new PepperSouceFactory();
		if(type.equals("pepper"))
		{
			pizza = new PepperPizza(souceFactory);
			pizza.name = "papperPizza";
		}
		return pizza;
	}
	
}
